Quant Exam  >  Quant Questions  >  main(){void vpointer;char cHar = ‘g&rsq... Start Learning for Free
main()
{
void vpointer;
char cHar = ‘g’, *cHarpointer = “GOOGLE”;
int j = 40;
vpointer = &cHar;
printf(“%c”,*(char*)vpointer);
vpointer = &j;
printf(“%d”,*(int *)vpointer);
vpointer = cHarpointer;
printf(“%s”,(char*)vpointer +3);
}
Q. What is the output?
  • a)
    g40GLE 
  • b)
    g40GOOGLE 
  • c)
    g0GLE 
  • d)
    g4GOO
Correct answer is option 'A'. Can you explain this answer?
Most Upvoted Answer
main(){void vpointer;char cHar = ‘g’, *cHarpointer = &ldqu...
This code is incomplete and cannot be compiled or executed. It appears that the main function is being defined, but there is no code within the function and the variable declarations are incomplete. Additionally, the variable "vpointer" is declared as a void pointer, but it is not initialized to point to any specific memory location. The variable "cHar" is only assigned a partial value. More information is needed to provide a proper analysis.
Explore Courses for Quant exam
main(){void vpointer;char cHar = ‘g’, *cHarpointer = “GOOGLE”;int j = 40;vpointer = &cHar;printf(“%c”,*(char*)vpointer);vpointer = &j;printf(“%d”,*(int *)vpointer);vpointer = cHarpointer;printf(“%s”,(char*)vpointer +3);}Q. What is the output?a)g40GLEb)g40GOOGLEc)g0GLEd)g4GOOCorrect answer is option 'A'. Can you explain this answer?
Question Description
main(){void vpointer;char cHar = ‘g’, *cHarpointer = “GOOGLE”;int j = 40;vpointer = &cHar;printf(“%c”,*(char*)vpointer);vpointer = &j;printf(“%d”,*(int *)vpointer);vpointer = cHarpointer;printf(“%s”,(char*)vpointer +3);}Q. What is the output?a)g40GLEb)g40GOOGLEc)g0GLEd)g4GOOCorrect answer is option 'A'. Can you explain this answer? for Quant 2025 is part of Quant preparation. The Question and answers have been prepared according to the Quant exam syllabus. Information about main(){void vpointer;char cHar = ‘g’, *cHarpointer = “GOOGLE”;int j = 40;vpointer = &cHar;printf(“%c”,*(char*)vpointer);vpointer = &j;printf(“%d”,*(int *)vpointer);vpointer = cHarpointer;printf(“%s”,(char*)vpointer +3);}Q. What is the output?a)g40GLEb)g40GOOGLEc)g0GLEd)g4GOOCorrect answer is option 'A'. Can you explain this answer? covers all topics & solutions for Quant 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for main(){void vpointer;char cHar = ‘g’, *cHarpointer = “GOOGLE”;int j = 40;vpointer = &cHar;printf(“%c”,*(char*)vpointer);vpointer = &j;printf(“%d”,*(int *)vpointer);vpointer = cHarpointer;printf(“%s”,(char*)vpointer +3);}Q. What is the output?a)g40GLEb)g40GOOGLEc)g0GLEd)g4GOOCorrect answer is option 'A'. Can you explain this answer?.
Solutions for main(){void vpointer;char cHar = ‘g’, *cHarpointer = “GOOGLE”;int j = 40;vpointer = &cHar;printf(“%c”,*(char*)vpointer);vpointer = &j;printf(“%d”,*(int *)vpointer);vpointer = cHarpointer;printf(“%s”,(char*)vpointer +3);}Q. What is the output?a)g40GLEb)g40GOOGLEc)g0GLEd)g4GOOCorrect answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for Quant. Download more important topics, notes, lectures and mock test series for Quant Exam by signing up for free.
Here you can find the meaning of main(){void vpointer;char cHar = ‘g’, *cHarpointer = “GOOGLE”;int j = 40;vpointer = &cHar;printf(“%c”,*(char*)vpointer);vpointer = &j;printf(“%d”,*(int *)vpointer);vpointer = cHarpointer;printf(“%s”,(char*)vpointer +3);}Q. What is the output?a)g40GLEb)g40GOOGLEc)g0GLEd)g4GOOCorrect answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of main(){void vpointer;char cHar = ‘g’, *cHarpointer = “GOOGLE”;int j = 40;vpointer = &cHar;printf(“%c”,*(char*)vpointer);vpointer = &j;printf(“%d”,*(int *)vpointer);vpointer = cHarpointer;printf(“%s”,(char*)vpointer +3);}Q. What is the output?a)g40GLEb)g40GOOGLEc)g0GLEd)g4GOOCorrect answer is option 'A'. Can you explain this answer?, a detailed solution for main(){void vpointer;char cHar = ‘g’, *cHarpointer = “GOOGLE”;int j = 40;vpointer = &cHar;printf(“%c”,*(char*)vpointer);vpointer = &j;printf(“%d”,*(int *)vpointer);vpointer = cHarpointer;printf(“%s”,(char*)vpointer +3);}Q. What is the output?a)g40GLEb)g40GOOGLEc)g0GLEd)g4GOOCorrect answer is option 'A'. Can you explain this answer? has been provided alongside types of main(){void vpointer;char cHar = ‘g’, *cHarpointer = “GOOGLE”;int j = 40;vpointer = &cHar;printf(“%c”,*(char*)vpointer);vpointer = &j;printf(“%d”,*(int *)vpointer);vpointer = cHarpointer;printf(“%s”,(char*)vpointer +3);}Q. What is the output?a)g40GLEb)g40GOOGLEc)g0GLEd)g4GOOCorrect answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice main(){void vpointer;char cHar = ‘g’, *cHarpointer = “GOOGLE”;int j = 40;vpointer = &cHar;printf(“%c”,*(char*)vpointer);vpointer = &j;printf(“%d”,*(int *)vpointer);vpointer = cHarpointer;printf(“%s”,(char*)vpointer +3);}Q. What is the output?a)g40GLEb)g40GOOGLEc)g0GLEd)g4GOOCorrect answer is option 'A'. Can you explain this answer? tests, examples and also practice Quant tests.
Explore Courses for Quant exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev